/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlReceiveGoods.java
 *
 * Created on 22 ม.ค. 2553, 14:59:57
 */

package Inventory;

/**
 *
 * @author Administrator
 */
public class PnlListReceiveGoods extends javax.swing.JPanel {

    /** Creates new form PnlReceiveGoods */
    public PnlListReceiveGoods() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        PnlHeadListReGoods = new javax.swing.JPanel();
        lblHeadListReceive = new javax.swing.JLabel();
        btnReceiveListSearch = new javax.swing.JButton();
        btnReceiveListAdd = new javax.swing.JButton();
        btnReceiveListDel = new javax.swing.JButton();
        btnReceiveListEdit = new javax.swing.JButton();
        btnReceivePrint = new javax.swing.JButton();
        PnlListReGoods = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblListReGo = new javax.swing.JTable();
        lblPoCode = new javax.swing.JLabel();
        txtPoCode = new javax.swing.JTextField();
        txtPoCode1 = new javax.swing.JTextField();
        lblPoCode1 = new javax.swing.JLabel();
        txtProCode = new javax.swing.JTextField();
        lblProCode = new javax.swing.JLabel();
        txtReCode = new javax.swing.JTextField();
        lblReCode = new javax.swing.JLabel();
        lblInvoiceCode = new javax.swing.JLabel();
        txtInvoiceCode = new javax.swing.JTextField();
        txtCreCode1 = new javax.swing.JTextField();
        lblReCode1 = new javax.swing.JLabel();
        lblEmCode = new javax.swing.JLabel();
        txtEmCode = new javax.swing.JTextField();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        PnlHeadListReGoods.setBackground(new java.awt.Color(204, 255, 204));
        PnlHeadListReGoods.setMaximumSize(new java.awt.Dimension(700, 80));
        PnlHeadListReGoods.setMinimumSize(new java.awt.Dimension(700, 80));
        PnlHeadListReGoods.setPreferredSize(new java.awt.Dimension(700, 80));

        lblHeadListReceive.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblHeadListReceive.setText("จัดการการรับสินค้า");

        btnReceiveListSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/search_30x30.gif"))); // NOI18N

        btnReceiveListAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/add_30x30.gif"))); // NOI18N

        btnReceiveListDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N

        btnReceiveListEdit.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnReceiveListEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/edit1_30x30.gif"))); // NOI18N
        btnReceiveListEdit.setMaximumSize(new java.awt.Dimension(75, 30));
        btnReceiveListEdit.setMinimumSize(new java.awt.Dimension(75, 30));
        btnReceiveListEdit.setPreferredSize(new java.awt.Dimension(75, 30));

        btnReceivePrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnReceivePrint.setMaximumSize(new java.awt.Dimension(65, 40));
        btnReceivePrint.setMinimumSize(new java.awt.Dimension(65, 40));
        btnReceivePrint.setPreferredSize(new java.awt.Dimension(65, 40));

        javax.swing.GroupLayout PnlHeadListReGoodsLayout = new javax.swing.GroupLayout(PnlHeadListReGoods);
        PnlHeadListReGoods.setLayout(PnlHeadListReGoodsLayout);
        PnlHeadListReGoodsLayout.setHorizontalGroup(
            PnlHeadListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PnlHeadListReGoodsLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(PnlHeadListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PnlHeadListReGoodsLayout.createSequentialGroup()
                        .addComponent(btnReceiveListSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnReceiveListAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnReceiveListDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnReceiveListEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnReceivePrint, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblHeadListReceive))
                .addGap(543, 543, 543))
        );
        PnlHeadListReGoodsLayout.setVerticalGroup(
            PnlHeadListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PnlHeadListReGoodsLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addGroup(PnlHeadListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnReceivePrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(PnlHeadListReGoodsLayout.createSequentialGroup()
                        .addComponent(lblHeadListReceive)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(PnlHeadListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btnReceiveListSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnReceiveListAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnReceiveListDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnReceiveListEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );

        add(PnlHeadListReGoods, java.awt.BorderLayout.PAGE_START);

        tblListReGo.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        tblListReGo.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "รหัสใบ Po", "รหัสผู้จำหน่าย", "รายการสินค้า", "จำนวนสินค้า"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                true, false, false, true
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tblListReGo);

        lblPoCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblPoCode.setText("รหัสใบสั่งซื้อ :");

        txtPoCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        txtPoCode1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblPoCode1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblPoCode1.setText("รหัสผู้จำหน่าย :");

        txtProCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblProCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblProCode.setText("รหัสสินค้า :");

        txtReCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblReCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblReCode.setText("รหัสใบรับสินค้า :");

        lblInvoiceCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblInvoiceCode.setText("รหัสใบภาษี :");

        txtInvoiceCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        txtCreCode1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblReCode1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblReCode1.setText("วันที่ :");

        lblEmCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblEmCode.setText("พนักงาน :");

        txtEmCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txtEmCode.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtEmCodeActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout PnlListReGoodsLayout = new javax.swing.GroupLayout(PnlListReGoods);
        PnlListReGoods.setLayout(PnlListReGoodsLayout);
        PnlListReGoodsLayout.setHorizontalGroup(
            PnlListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PnlListReGoodsLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(PnlListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblEmCode)
                    .addComponent(lblInvoiceCode)
                    .addComponent(lblPoCode1)
                    .addComponent(lblReCode))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(PnlListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtProCode)
                    .addComponent(txtPoCode1)
                    .addComponent(txtReCode, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE)
                    .addComponent(txtEmCode, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(PnlListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblReCode1)
                    .addComponent(lblPoCode)
                    .addComponent(lblProCode))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(PnlListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtInvoiceCode)
                    .addComponent(txtPoCode)
                    .addComponent(txtCreCode1, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(193, 193, 193))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PnlListReGoodsLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 680, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        PnlListReGoodsLayout.setVerticalGroup(
            PnlListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PnlListReGoodsLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(PnlListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PnlListReGoodsLayout.createSequentialGroup()
                        .addGroup(PnlListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblReCode)
                            .addComponent(txtReCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(PnlListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtPoCode1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblPoCode1))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(PnlListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblInvoiceCode)
                            .addComponent(txtProCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(PnlListReGoodsLayout.createSequentialGroup()
                        .addGroup(PnlListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblReCode1)
                            .addComponent(txtCreCode1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(PnlListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblPoCode)
                            .addComponent(txtPoCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(PnlListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblProCode)
                            .addComponent(txtInvoiceCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PnlListReGoodsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtEmCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblEmCode))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 164, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(123, Short.MAX_VALUE))
        );

        add(PnlListReGoods, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void txtEmCodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtEmCodeActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txtEmCodeActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel PnlHeadListReGoods;
    private javax.swing.JPanel PnlListReGoods;
    private javax.swing.JButton btnReceiveListAdd;
    private javax.swing.JButton btnReceiveListDel;
    private javax.swing.JButton btnReceiveListEdit;
    private javax.swing.JButton btnReceiveListSearch;
    private javax.swing.JButton btnReceivePrint;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblEmCode;
    private javax.swing.JLabel lblHeadListReceive;
    private javax.swing.JLabel lblInvoiceCode;
    private javax.swing.JLabel lblPoCode;
    private javax.swing.JLabel lblPoCode1;
    private javax.swing.JLabel lblProCode;
    private javax.swing.JLabel lblReCode;
    private javax.swing.JLabel lblReCode1;
    private javax.swing.JTable tblListReGo;
    private javax.swing.JTextField txtCreCode1;
    private javax.swing.JTextField txtEmCode;
    private javax.swing.JTextField txtInvoiceCode;
    private javax.swing.JTextField txtPoCode;
    private javax.swing.JTextField txtPoCode1;
    private javax.swing.JTextField txtProCode;
    private javax.swing.JTextField txtReCode;
    // End of variables declaration//GEN-END:variables

}
